<form name="editForm">
	<div class="form-group">
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>申请岗位：</div>
			<div class="col-sm-8 col-md-8 form-input">
				<select id="roleId" 
						name="roleId"
						class="form-control" 
						ng-model="editModel.request.roleId">
                        <option ng-repeat="role in viewModel.roleList" value="{{role.roleId}}" ng-selected="viewModel.selected(role)">{{role.roleName}}--({{role.departmentCode}}){{role.departmentName}}</option>
			    </select>
			</div>
		</div>
		<div class="col-md-12 form-item"
			ng-show="editModel.isRestDay==0" 
		   	ng-hide="editModel.isRestDay==1">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>加班类型：</div>
			<div class="col-sm-8 col-md-8 form-input">
				<select name="overtimeType"
						class="form-control" 
						ng-change="viewModel.overtimeTypeChange()"
						ng-model="editModel.request.overtimeType">
                       <option value="3">晚上</option>
                       <option value="4">早上</option>
			    </select>
			</div>
		</div>
		<div class="col-md-12 form-item">	 	
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>开始日期：</div>	
            <div class="col-lg-8 col-md-8 form-input">
				<div class="input-group" ng-class="{ 'has-error' : editForm.startDate.$dirty && editForm.startDate.$invalid }">
					<input name="startDate" 
						   ng-model="editModel.request.startDate" 
						   ng-change="viewModel.attendanceDateChange()"
						   class="form-control datetime-picker" 
						   type="text"
						   autofocus="autofocus" 
						   maxLength="10"
						   z-datepicker-popup="{{viewModel.format}}"
						   is-open="viewModel.editStartDateOpened"
						   datepicker-options="viewModel.dateOptions"
					       close-text="Close"
					       required
					       readonly>
					<span class="input-group-addon cursorPointer" ng-click="viewModel.editStartDateOpen($event)"><i class="fa-calendar"></i></span>
				</div>
            </div>
           </div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>开始时间：</div>
			<div class="col-sm-2 col-md-2 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm.wStartTime.$dirty && editForm.wStartTime.$invalid}">
					<input id="wStartTime" 
						   name="wStartTime" 
				 		   class="form-control" 
				 		   ng-change="viewModel.dateChange(true)"
				 		   ng-click="viewModel.startTimeClick()"
				 		   ng-model="editModel.request.startTime"
				 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
				 		   maxLength="5"
				 		   data-autoclose="true"
				 		   required>    
				</div>	   
			</div>
			<div class="col-sm-2 col-md-2 form-title-left" ng-if="editModel.startTime!=null">
				签到时间：{{editModel.startTime}}
			</div>
		</div>
		<!-- <div class="col-md-12 form-item" 
			ng-show="editModel.startToTimeShow == 0"
			ng-hide="editModel.startToTimeShow != 0">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>至：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm.wStartToTime.$dirty && editForm.wStartToTime.$invalid}">
					<input id="wStartToTime" 
						   name="wStartToTime" 
				 		   class="form-control" 
				 		   ng-change="viewModel.getRequestHours()"
				 		   ng-model="editModel.request.startToTime"
				 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
				 		   maxLength="5">  
				</div>	   
			</div>
		</div> -->
           <div class="col-md-12 form-item">
           	<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>结束日期：</div>
            <div class="col-lg-8 col-md-8 form-input">
				<div class="input-group" ng-class="{ 'has-error' : editForm.endDate.$dirty && editForm.endDate.$invalid }">
					<input name="endDate" 
						   ng-model="editModel.request.endDate" 
						   ng-change="viewModel.dateChange(true)"
						   class="form-control datetime-picker" 
						   type="text"
						   autofocus="autofocus" 
						   maxLength="10"
						   z-datepicker-popup="{{viewModel.format}}"
						   is-open="viewModel.editEndDateOpened"
						   datepicker-options="viewModel.dateOptions"
					       close-text="Close"
					       required
					       readonly>
					<span class="input-group-addon cursorPointer" ng-click="viewModel.editEndDateOpen($event)"><i class="fa-calendar"></i></span>
				</div>
            </div>
           </div>
           <div class="col-md-12 form-item">
				<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>结束时间：</div>
				<div class="col-sm-2 col-md-2 form-input">
				 	<div class="input-group" ng-class="{ 'has-error' :  editForm.wEndTime.$dirty && editForm.wEndTime.$invalid}">
					    <input id="wEndTime" 
					    	name="wEndTime" 
					    	ng-change="viewModel.dateChange(true)"
					   		ng-click="viewModel.endTimeClick()"
					 		class="form-control" 
					 		ng-model="editModel.request.endTime" 
					 		maxLength="5"
					 		ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
					 		data-autoclose="true"
					 		required>
					</div>	   
				</div>
				<div class="col-sm-2 col-md-2 form-title-left" ng-if="editModel.endTime!=null">
					签退时间：{{editModel.endTime}} 
				</div>
		   </div>
		 <div class="col-md-12 form-item" 
		   		ng-show="editModel.isRestDay==1" 
		   		ng-hide="editModel.isRestDay==0">
				<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>段内休息时长：</div>
				<div class="col-sm-2 col-md-2 form-input">
				 	<div class="input-group" ng-class="{ 'has-error' :  editForm.interval.$dirty && editForm.interval.$invalid}">
					   <input name="interval" 
					    	class="form-control" 
					 		ng-model="editModel.overtimeInterval"
					 		ng-change="viewModel.overtimeChange()"
					 		ng-pattern="/^[0-9]*$/"
					 		maxLength="5"
					 		data-autoclose="true"
					 		required>
					</div>	   
				</div>
				<div class="col-sm-1 col-md-1 form-title">
					 分钟
				</div>
		</div>
        <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">加班时长：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<input id="whours"
			 		   name="whours" 
			 		   class="form-control" 
			 		   ng-model="editModel.hours" 
			 		   disabled="disabled"> 
			</div>
		</div>
        <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>申请说明：</div>
			<div class="col-sm-8 col-md-8 form-input"
				ng-class="{ 'has-error' :  editForm.description.$dirty && editForm.description.$invalid}">
			 	<textarea name="description" 
			 		   class="form-control" 
			 		   ng-model="editModel.request.description" 
			 		   maxLength="255"
			 		   rows="3"
			 		   required>
			 	</textarea>
			</div>
		</div>
		
	</div>	
</form>
